import request from '@/utils/request'

const api = {
// 获取数据生产中的数据颜色数据
  GetDataProducesDataColorDataList(data) {
    return request({
      url: '/api/Public/GetDataProducesDataColorDataList',
      method: 'post',
      data
    })
  },

  // 获取数据生产中的数据格式数据
  GetDataProducesDataFormatDataList(data) {
    return request({
      url: '/api/Public/GetDataProducesDataFormatDataList',
      method: 'post',
      data
    })
  },

  // 获取数据生产中的自检流程数据
  GetDataProducesInspectProcessDataList(data) {
    return request({
      url: '/api/Public/GetDataProducesInspectProcessDataList',
      method: 'post',
      data
    })
  },

  // 分页获取数据生产单数据
  GetPageDataProduceBillDataList(data) {
    return request({
      url: '/api/ProductionBusniess/GetPageDataProduceBillDataList',
      method: 'post',
      data
    })
  },
  // 获取匹配的可开数据生产单的订单数据
  GetCanOpenDataProduceBillsSaleOrderList(data) {
    return request({
      url: '/api/OrderBusniess/GetCanOpenDataProduceBillsSaleOrderList',
      method: 'post',
      data
    })
  },

  // 新建数据生产单
  CreateDataProduceBill(data) {
    return request({
      url: '/api/ProductionBusniess/CreateDataProduceBill',
      method: 'post',
      data
    })
  },
  // 修改数据生产单
  UpdateDataProduceBill(data) {
    return request({
      url: '/api/ProductionBusniess/UpdateDataProduceBill',
      method: 'post',
      data
    })
  },
  // 删除数据生产单
  DeleteDataProduceBill(data) {
    return request({
      url: '/api/ProductionBusniess/DeleteDataProduceBill',
      method: 'post',
      data
    })
  },
  // 获取数据生产单详情数据
  GetDataProduceBillDetail(data) {
    return request({
      url: '/api/ProductionBusniess/GetDataProduceBillDetail',
      method: 'post',
      data
    })
  },
  // 确认数据生产单数据到达
  SureDataArrived(data) {
    return request({
      url: '/api/ProductionBusniess/SureDataArrived',
      method: 'post',
      data
    })
  },
  // 完成数据生产单
  FinishedDataProduceBill(data) {
    return request({
      url: '/api/ProductionBusniess/FinishedDataProduceBill',
      method: 'post',
      data
    })
  },

  // 查看工单
  GetSaleOrdersProduceTaskBillDetail(data) {
    return request({
      url: '/api/ProductionBusniess/GetSaleOrdersProduceTaskBillDetail',
      method: 'post',
      data
    })
  }

}

export default api
